

<script type="text/javascript" src="__PUBLIC__/Js/jquery.artDialog.js?skin=default"></script>
    <load href="__PUBLIC__/Js/iframeTools.js"/>
    <load href="__PUBLIC__/Js/my.js"/>
    <load href="__PUBLIC__/Js/swfupload.js"/>  
 	<script src="__PUBLIC__/Js/jquery.validate.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/MyDate/WdatePicker.js"></script>
    <script type="text/javascript">
	
var APP	 =	 '__APP__';
var ROOT =	 '__ROOT__';
var PUBLIC = '__PUBLIC__';
</script>

<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					 uploadJson : "index.php?g=User&m=Upload&a=index",//图片上传后的处理地址
                    //fileManagerJson : 'Public/js/kindeditor/php/file_manager_json.php',
					allowFileManager : true
				});
				
				//批量上传设计图
				K('#J_selectImage').click(function() {
					editor.loadPlugin('multiimage', function() {
						editor.plugin.multiImageDialog({
							clickFn : function(urlList) {
								var div = K('#pics_images');
								var img= K('#up_img');
								
								K.each(urlList, function(i, data) {
									var html='<div class="wind_img"><input  type="hidden" name="pics[]" value="'+data.url+'"/><img  class="wind_UPsubmits1" src="'+data.url+'" />';
										html+='<a class="del_img" href="javasrcipt:"><img width="16"   src="../Public/images/xx.png"/></a></div>';
									div.append(html);
									
								});
								editor.hideDialog();
							}
						});
					});
				});
			});


    $(document).ready(function(e){
		   $(".del_img").live("click",function(){
			   
			   $(this).parent().remove();
			  // var id=$(this).attr("name");
			  // var img=$("#del"+id).val();
			  // alert(img);
			   
		      });
   });
			
	</script>

 <style type="text/css"> 
 .wind_img  a:hover{ background:#F00;}
 .title{ text-align:center; font-size:14px; font-weight:bold}
 .c_img{ width:990px; float:left;  overflow:hidden;  }
 .wind_img{ float:left; margin-left:70px; margin-top:10px; height:196px;text-align:center;border:#999 solid 1px; }
 .wind_UPsubmits1{ margin-top:16px;margin-left:25px;}
 

 .del{ text-align:center; margin-top:20px;}
 .del_subm{
	
	width: 105px;
	margin-top:20px;
	line-height: 38px;
	border-radius: 6px;
	
	border:none;
	font-family: 微软雅黑;
	font-size: 14px;
	font-weight: bold;
	color: #FFF;
	cursor: pointer;
	text-align: center;
	background: #563F01;
}

 </style>  
 <form method='post'  id="myform2" action="{:URL('User-Designer/del_img')}">
                 <input type="hidden" name="id"  value="{$id}"/>              
<div class="wind_content1R">
<div class="title">{$list.title} 图片编辑</div>
<div class="c_img" id="pics_images"> 
     <?php foreach($pics as $k=>$v){ ?>
       
       <div class="wind_img"><input  id="del{$k}" type="hidden" name="pics[]" value="{$v['filepath']}"/><img  class="wind_UPsubmits1" src="{$v['filepath']}" /><a class="del_img" name="{$k}" href="javasrcipt:"><img width="16"   src="../Public/images/xx.png"/></a></div>
      
     <?php }?> 
</div> 
      <div id="up_img"></div>
      <div class="del"><input type="submit" class="del_subm" value="保存"/></div>
      <div class="del"><a href="javascript:" id="J_selectImage"><u>批量上传图片</u></a></div>
      
     
    </div>
    <div style="clear:both;margin-bottom:20px;"></div>
  </div>
</div>

<div class="clear:both;"></div>
</form>                                                                                                                                                                                                                                                                                                                                                                                                                                                